<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%-- 引入页面头 --%>
<%@ include file="/pageHead.jsp"%>
<form name="form1" id="form1"
	action="<%-- ${systemctx}/sample/saveSample.web --%>" method="post">
	<div class="pageMain">
		<div class="pageTitle"><%=MessageResourcesUtils.getMessage(request, "systemmanage.servicemanagement.title") %><span></span><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.title") %><span></span><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.Check") %></div>
		<div class="pageBody">
			<h4 class="list-tit">修改前</h4>
			<div class="form-group">
				<ul>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storecode") %></label>
						<span><input type="text" id="storecode" name="storecode" value="${storeChargeManage.number}" disabled="disabled"/></span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storename") %></label>
						<span><input type="text" id="stroename" name="stroename" value="${storeChargeManage.name}" disabled="disabled"/></span>
					</li>
				</ul>
			
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicenum") %></label>
						<span><input type="text" id="servicenum" name="servicenum" value="${storeChargeManage.servicenum}" disabled="disabled"/></span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicename") %></label>
						<span><input type="text" id="servicename" name="servicename" value="${storeChargeManage.servicename}" disabled="disabled"/></span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposed") %></label>
						<span>
							<c:if test="${storeChargeManage.isproposed == yes}">
							<input type="checkbox" id="isproposedcheck" checked="checked" name="isproposedcheck" class="check-box" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManage.isproposed != yes}">
							<input type="checkbox" id="isproposedcheck" name="isproposedcheck" class="check-box" disabled="disabled"/>
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposedprice") %></label>
						<span>
							<c:if test="${storeChargeManage.proposedprice==0.00}">
								<input type="text" id="proposedprices" name="proposedprices" value="" class="iss_amount" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManage.proposedprice!=0.00}">
								<input type="text" id="proposedprices" name="proposedprices" value="${storeChargeManage.proposedprice}" class="iss_amount" disabled="disabled"/>
							</c:if>
						</span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.month") %></label>
						<span>
							<c:if test="${storeChargeManage.ismonth == yes}">
								<input type="checkbox" id="ismonthcheck" checked="checked" name="ismonthcheck" class="check-box" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManage.ismonth != yes}">
								<input type="checkbox" id="ismonthcheck" name="ismonthcheck" class="check-box" disabled="disabled"/>
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.monthprice") %></label>
						<span>
							<c:if test="${storeChargeManage.monthprice ==0.00}">
							<input type="text" id="monthprices" name="monthprices" value="" class="iss_amount" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManage.monthprice !=0.00}">
							<input type="text" id="monthprices" name="monthprices" value="${storeChargeManage.monthprice}" class="iss_amount" disabled="disabled"/>
							</c:if>
						</span>
					</li>
				</ul>
			</div>
			<h4 class="list-tit">修改后</h4>
			<div class="form-group">
				<ul>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storecode") %></label>
						<span><input type="text" id="number" name="number" value="${storeChargeManageTemp.number}" disabled="disabled"/></span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storename") %></label>
						<span><input type="text" id="name" name="name" value="${storeChargeManageTemp.name}" disabled="disabled"/></span>
					</li>
				</ul>
			
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicenum") %></label>
						<span><input type="text" id="servicenum" name="servicenum" value="${storeChargeManageTemp.servicenum}" disabled="disabled"/></span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicename") %></label>
						<span><input type="text" id="servicename" name="servicename" value="${storeChargeManageTemp.servicename}" disabled="disabled"/></span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposed") %></label>
						<span>
							<c:if test="${storeChargeManageTemp.isproposed == yes}">
							<input type="checkbox" id="isproposedcheck" checked="checked" name="isproposedcheck" class="check-box" disabled="disabled"/>
							<input type="hidden" id="isproposed" name="isproposed" value="1" />
							</c:if>
							<c:if test="${storeChargeManageTemp.isproposed != yes}">
							<input type="checkbox" id="isproposedcheck" name="isproposedcheck" class="check-box" disabled="disabled"/>
							<input type="hidden" id="isproposed" name="isproposed" value="0" />
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposedprice") %></label>
						<span>
							<c:if test="${storeChargeManageTemp.proposedprice==0.00}">
								<input type="text" id="proposedprice" name="proposedprice" value="" class="iss_amount" readonly="readonly"/>
							</c:if>
							<c:if test="${storeChargeManageTemp.proposedprice!=0.00}">
								<input type="text" id="proposedprice" name="proposedprice" value="${storeChargeManageTemp.proposedprice}" class="iss_amount" readonly="readonly"/>
							</c:if>
						</span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.month") %></label>
						<span>
							<c:if test="${storeChargeManageTemp.ismonth == yes}">
								<input type="checkbox" id="ismonthcheck" checked="checked" name="ismonthcheck" class="check-box" disabled="disabled"/>
								<input type="hidden" id="ismonth" name="ismonth" value="1"/>
							</c:if>
							<c:if test="${storeChargeManageTemp.ismonth != yes}">
								<input type="checkbox" id="ismonthcheck" name="ismonthcheck" class="check-box" disabled="disabled"/>
								<input type="hidden" id="ismonth" name="ismonth" value="0"/>
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.monthprice") %></label>
						<span>
							<c:if test="${storeChargeManageTemp.monthprice ==0.00}">
							<input type="text" id="monthprice" name="monthprice" value="" class="iss_amount" readonly="readonly"/>
							</c:if>
							<c:if test="${storeChargeManageTemp.monthprice !=0.00}">
							<input type="text" id="monthprice" name="monthprice" value="${storeChargeManageTemp.monthprice}" class="iss_amount" readonly="readonly"/>
							</c:if>
						</span>
					</li>
				</ul>
			</div>
			<div class="button-group">
				<input type="hidden" id="id" name="id" value="${storeChargeManageTemp.id}" />
				<input type="button" class="btn btn-default" id="butCheck" name="butCheck" value="<%=MessageResourcesUtils.getMessage(request, "common.button.check") %>" />
				<input type="button" class="btn btn-default" id="butReturn" name="butReturn" value='<%=MessageResourcesUtils.getMessage(request, "common.button.back") %>' />
			</div>
		</div>
	</div>
</form>
<script type="text/javascript">
	$(document).ready(function(){
		$("#butReturn").click(function(){
			parent.document.location.reload();
			$.fn.closeIssWindow();
		});
		
		$('#butCheck').click(function() {
			var proposedprice = $('#proposedprice').val();
			var monthprice = $('#monthprice').val();
			if(confirm('<%=MessageResourcesUtils.getMessage(request,"alertinfo.common.jsp.alert3")%>') ){
				showSending();
				form1.action="${systemctx}/dailyoperation/storechargemanage/checkStoreChargeManage.web?proposedprice="+proposedprice+"&monthprice="+monthprice;
				form1.submit();
			}
		});
	});
</script>
<%-- 引入页面尾 --%>
<%@ include file="/pageFloor.jsp"%>